package com.casework.auth

import org.joda.time.LocalDate

class Company {

    String name
    String contact
    String email
    String phoneNumber
    Integer numberOfLicenses
    LocalDate expiryDate
    List employees = []
    
    static hasMany = [employees:AuthUser]

    static constraints = {
        expiryDate nullable: true
        numberOfLicenses nullable: true
    }

    @Override
    String toString(){
        name
    }
}
